// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   test.java

import java.io.PrintStream;
import java.util.List;
import java.util.Scanner;

public class test
{

    public test()
    {
    }

    public static void main(String args[])
    {
        Scanner scanner = new Scanner(System.in);
        System.out.println("\u8BF7\u8F93\u5165items1\u7684\u957F\u5EA6");
        int len1 = scanner.nextInt();
        Items items = new Items();
        for(; len1 != 0; len1--)
        {
            System.out.println("\u8BF7\u8F93\u5165\u4EF7\u503C\u548C\u91CD\u91CF");
            int val = scanner.nextInt();
            int weight = scanner.nextInt();
            Items.item node = new Items.item(val, weight);
            items.items1.add(node);
        }

        System.out.println("\u8BF7\u8F93\u5165items2\u7684\u957F\u5EA6");
        for(int len2 = scanner.nextInt(); len2 != 0; len2--)
        {
            System.out.println("\u8BF7\u8F93\u5165\u4EF7\u503C\u548C\u91CD\u91CF");
            int val = scanner.nextInt();
            int weight = scanner.nextInt();
            Items.item node = new Items.item(val, weight);
            items.items2.add(node);
        }

        items.show();
        items.combineVal();
    }
}
